package com.sright.bcard.content.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.dao.DataTemplateVisitNumDAO;
import com.sright.bcard.content.dal.entity.DataTemplateVisitNumDO;
import com.sright.bcard.content.dal.mapper.DataTemplateVisitNumDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class DataTemplateVisitNumDAOImpl extends BaseDAOImpl<DataTemplateVisitNumDO> implements DataTemplateVisitNumDAO {

    @Resource
    private DataTemplateVisitNumDOMapper dataTemplateVisitNumDOMapper;

    @Override
    protected BaseMapper<DataTemplateVisitNumDO> getObjMapper() {
        return dataTemplateVisitNumDOMapper;
    }

    @Override
    public DataTemplateVisitNumDO selectByMmeberIdAndTemplateId(Long memberId, Long templateId) {
        return dataTemplateVisitNumDOMapper.selectByMmeberIdAndTemplateId(memberId,templateId);
    }
}
